package com.yuke.cloud.service.pmc.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "商品推荐详情表")
public class ProdSpecInfoAndPriceDto {
    @Column(name = "spec_id")
    @ApiModelProperty(value="specId主键，自增")
    private Long specId;

    @Column(name = "product_id")
    @ApiModelProperty(value="productId,商品ID")
    private Long productId;  // add by wg 20190708

    @ApiModelProperty(value="factoryId")
    private Long factoryId;

    @ApiModelProperty(value="regionId")
    private Long regionId;

    @Column(name = "spec_name")
    @ApiModelProperty(value="specName商品名称")
    private String specName;

    @Column(name = "sale_price")
    @ApiModelProperty(value="salePrice自定义售价，价格单位为分")
    private Integer salePrice;

    @Column(name = "picture")
    @ApiModelProperty(value = "图片地址")
    private String picture;

    @ApiModelProperty(value = "商品月销量")  // 总销量
    private Long saleCount;

    @ApiModelProperty(value = "商品的重量")
    private Integer weight;

    @ApiModelProperty(value = "商品的库存量")
    private Integer stockCount;

    @ApiModelProperty(value = "是否为新品")
    private Boolean isNew;

    @ApiModelProperty(value = "是否为推荐商品")
    private Boolean isRecommend;

    @ApiModelProperty(value = "是否为厂家直销")
    private Boolean isFactory;

    @ApiModelProperty(value = "是否支持分销")
    private Boolean isRetail;

    @ApiModelProperty(value = "指导价")
    private Integer guidancePrice;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "是否为秒杀活动商品")
    private Boolean isSecKill;

    @ApiModelProperty(value = "秒杀商品价格")
    private Integer secKillPrice;

    @ApiModelProperty(value = "秒杀活动结束时间")
    private Date secKillEndTime;

    // add by wg 20190716 增加商品发货源信息
    @ApiModelProperty(value = "商品所在仓库ID")
    private Long warehouseId;

    @ApiModelProperty(value = "商品所在城市ID")
    private Long wareCityId;

    @ApiModelProperty(value = "商品所在城市名称，包括省份")
    private String wareCityName;

    // 查询条件
    @ApiModelProperty(value = "商品分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "销售类型")
    private Byte saleType;  // 1: 零售，2：批发

    @ApiModelProperty(value = "品牌筛选")
    private List<Long> brandList;  // 1: 零售，2：批发

    @ApiModelProperty(value = "价格排序方式")
    private String sortPriceType;  // asc: 价格升序，desc：价格降序

    @ApiModelProperty(value = "销量排序方式")
    private String sortCountType;  // asc: 销量升序，desc：销量降序

    @ApiModelProperty(value = "是否有搭赠活动")
    private Boolean hasTying;  // 0: 没有搭赠活动，1：有搭赠活动

    @ApiModelProperty(value = "搭赠商品id")
    private Long giftSpecId;

    @ApiModelProperty(value = "是否打折")
    private Integer hasDiscount;

    @ApiModelProperty(value = "是否满减")
    private Integer hasReduction;

    @ApiModelProperty(value = "是否返利")
    private Integer hasRebate;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
